home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 015a / yesno21.zip / YESNO21.TXT < prev    next >
Text File  |  1993-03-29  |  8KB  |  172 lines

  1.                                   YESORNO
  2.                              Decision Utility
  3.                                      
  4.                             Version 2.1 3-19-93
  5.                      (c) 1992, 1993 DYNAMOUS Software.
  6.                            All Rights Reserved.
  7.                               47 Kristin Dr.
  8.                             Rochester, NY 14624
  9.  
  10. Concept:
  11.  
  12. Work - When turning on the PC, we wanted to choose whether or not we logged
  13. into the NOVELL Network and load WINDOWS.
  14.  
  15. BBS -  We wrote 2 separate batch files for each set of utilities used by
  16. the BBS.  One batch file contains the decision utility so we could make
  17. the appropriate decisions. The other batch file omits the decision
  18. utility, to enhance unattended nightly maintenance.
  19.  
  20. I tried several other utilities that provided the ability to react to a
  21. decision.  They all fell short for one or more of the following reasons:
  22.  
  23. ■  The prompt had to be written as an ECHO command in the batch file and
  24.    ECHO OFF had to precede the prompt.
  25. ■  The programs required user interaction so they could not be used when
  26.    the PC was unattended.
  27. ■  The batch file would need to use the DOS CLS command  to clear the
  28.    screen if necessary.
  29. ■  No tone was heard to alert the users to a decision prompt.
  30. ■  The prompts lacked any color or frames to set them apart from the other
  31.    text displayed.
  32.  
  33. Introduction:
  34.  
  35. Then YESORNO was written by DYNAMOUS Software to put more power in your
  36. batch files, here are the advantages of YESORNO:
  37.  
  38. ■  Displays your text without the ECHO commands from the batch file. The
  39.    status of ECHO (ON/OFF) has no effect on YESORNO prompts.
  40. ■  A default answer is used after a selectable period of time, to automate
  41.    unattended operation.
  42. ■  An optional switch clears the screen so the user can clearly see the
  43.    prompt.
  44. ■  Beeps are available for the prompts and input errors.
  45. ■  Background and text colors are available to help make the prompt more
  46.    noticeable.
  47. ■  Single and double frames are available to make the prompts more
  48.    professional looking.
  49. ■  Help is built into the program and accessed with the "YESORNO /?"
  50.    command.
  51. ■  A configuration program is available to store your default
  52.    configuration and enable the registered options.
  53.  
  54. Optional Usage:
  55.  
  56. The following options may be used on the command line to change the
  57. defaults of YESORNO.  This will allow you to use YESORNO for your specific
  58. needs.
  59.  
  60.      C:\> YESORNO /Y /15 /t:"Text comment" /tc:n /tb:n /bt:x /be:x /f:x
  61.  
  62. Where:
  63.  
  64. /Y or /N       The answer to the prompt if no key is pressed before the
  65.                time-out.
  66.                This is a required option.  You must use either /Y or /N or
  67.                the program will display the usage screen.
  68.  
  69. /nn            The amount of time in seconds for the user to enter a
  70.                response to the prompt.
  71.                /0 = never time out,  maximum = 9999
  72.                This is a required option.  You must enter the time to wait
  73.                for the user to reply or  /0 or the program will display the
  74.                usage screen.
  75.  
  76. /t:"Text Prompt" The text  prompt to be displayed on the screen for
  77.                the user.
  78.                If the text contains spaces, you must enclose the text in
  79.                double (") quotes.
  80.                Example -- /t:"Do you want to Log In to the Network [Y/N]?"
  81.                Any text not proceeded with a  /  will be displayed as
  82.                entered, even if it is not contiguous. This is a required
  83.                option.  You must use a text prompt or the program will
  84.                display the usage screen.
  85.  
  86. /clr           Optional argument to clear the screen before the
  87.                text is displayed.
  88.                Default:  If /clr is not used the screen will scroll under
  89.                normal DOS conditions.
  90.  
  91. /tc:n          The color of the text prompt.*
  92.                Where n is a number between 0 and 15 or 255.  See table for
  93.                values.
  94.                Example - /tc:14    { The text color would be yellow. }
  95.                Default - the current DOS text color.
  96.  
  97. /tb:n          The color of the background for prompt.*
  98.                Where n is a number between 0 and 7 or 255.  See table for
  99.                values.
  100.                Example - /tb:1    { The background color would be blue. }
  101.                Default - the current DOS background color.
  102.  
  103. /bt:x          Create a tone to alert the user to the prompt.*
  104.                Where x is 'n' for no and 'y' for yes.
  105.                Example - /bt:y  { A tone will be heard when the prompt is
  106.                displayed. }
  107.                Default - No tone on prompt message.
  108.  
  109. /be:x          Create a tone to alert the user that an incorrect
  110.                response was entered.*
  111.                Where x is 'n' for no and 'y' for yes.
  112.                Example - /be:y  { A tone will be heard when an incorrect
  113.                response is entered. }
  114.                Default - No tone on an incorrect response.
  115.  
  116. /f:x           Frame the text prompt with a border.*
  117.                Where x is 's' for a single, 'd' is for a double border and
  118.                'n' is for no border.
  119.                Example - /f:s  { The text prompt will be framed with a
  120.                single border.
  121.                Default - no border around the text prompt.
  122.  
  123. Note: Item marked with the * are only availible after registering YESORNO
  124. with DYNAMOUS Software.  You will also receive a configuration program to
  125. store your default configuration and enable the registered options.
  126.  
  127. Colors:
  128.        ┌──────────────┬─────────┬──────────────┬──────┐
  129.        │ Colors       │ Value   │ Background   │ Text │
  130.        ├──────────────┼─────────┼──────────────┼──────┤
  131.        │ BLACK        │ 0       │ Yes          │ Yes  │
  132.        │ BLUE         │ 1       │ Yes          │ Yes  │
  133.        │ GREEN        │ 2       │ Yes          │ Yes  │
  134.        │ CYAN         │ 3       │ Yes          │ Yes  │
  135.        │ RED          │ 4       │ Yes          │ Yes  │
  136.        │ MAGENTA      │ 5       │ Yes          │ Yes  │
  137.        │ BROWN        │ 6       │ Yes          │ Yes  │
  138.        │ LIGHTGRAY    │ 7       │ Yes          │ Yes  │
  139.        │ DARKGRAY     │ 8       │ No           │ Yes  │
  140.        │ LIGHTBLUE    │ 9       │ No           │ Yes  │
  141.        │ LIGHTGREEN   │ 10      │ No           │ Yes  │
  142.        │ LIGHTCYAN    │ 11      │ No           │ Yes  │
  143.        │ LIGHTRED     │ 12      │ No           │ Yes  │
  144.        │ LIGHTMAGENTA │ 13      │ No           │ Yes  │
  145.        │ YELLOW       │ 14      │ No           │ Yes  │
  146.        │ WHITE        │ 15      │ No           │ Yes  │
  147.        │ NONE         │ 255     │ Yes          │ Yes  │
  148.        └──────────────┴─────────┴──────────────┴──────┘
  149.  
  150. Shareware Notice:
  151.  
  152. You may use this utility for a 30 day trial period.  If you do not register
  153. within the trial period, please discontinue using this software.
  154.  
  155. If you like YESORNO please consider registering this utility with DYNAMOUS
  156. Software.  You will receive a registered copy of YESORNO and YESNOCFG to
  157. personalize your copy. This enables the 'registered options' and allows you
  158. to change the program defaults.  We also include other shareware utilities
  159. we have written.
  160.  
  161. To register, please send $5 (US) plus $3.50 (US) for media and US mailing
  162. to DYNAMOUS Software.  If you wish to avoid the media and mailing costs,
  163. register with DYNAMOUS and then you may download your registered version
  164. on:
  165.  
  166.      "The Hat's Place BBS" (716) 594-5572 16.8K USR HST Dual Standard
  167.  
  168. Site licenses discounts are available by contacting DYNAMOUS Software for
  169. more information.
  170.  
  171. DYNAMOUS Software   --    47 Kristin Dr.     Rochester, NY      14624
  172.